home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4941 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  862 b 

  1. Path: mail2news.demon.co.uk!ues5.cern.ch
  2. From: Dan Pop <Dan.Pop@cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Leap Years
  5. Date: Sun, 11 Feb 1996 04:19:07 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9602110319.AA04429@ues5.cern.ch>
  8. References: <8BA8405.02C70020E1.uuout@sourcebbs.com>
  9. X-NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: mail1.cern.ch!ues5.cern.ch
  12.  
  13. david.mohorn@sourcebbs.com (DAVID MOHORN) writes:
  14.  
  15. >How do you feature out leap years?  If its evenly divisible by 400 and
  16. >4?
  17.  
  18. Amongst the _many_ merits of K&R (both editions) is that it answers this
  19. question.  Time to read it.
  20.  
  21. Hint: 1996 is a leap year, but it's not "evenly divisible by 400 and 4".
  22.  
  23. Dan
  24. -- 
  25. Dan Pop
  26. CERN, CN Division
  27. Email: danpop@mail.cern.ch 
  28. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  29.